#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int a[10], b[10]={1};
	int i = 0,n;
	scanf("%d", &n);
	for (i = 0; i < n; i++)
		scanf("%d", &a[i]);
	int j = 0;
	int tmp,con=1;
	for(i=1;i<n;i++)
		for(j=0;j<n-i;j++)
			if (a[j] > a[j + 1])
			{
				tmp = a[j + 1];
				a[j + 1] = a[j];
				a[j] = tmp;
			}
	for (i = 0; i < n; i++)
	{
		for (j = i + 1; j < n&&a[i] == a[j]; j++)
				con++;
		b[i] = con;
		con = 1;
	}
	int max = 0;
	for (i = 1; i < n; i++)
		if (b[i] > b[max])
			max = i;
	for (i = 0; i < n; i++)
		if (b[i] == b[max])
			printf("%d:%d\n", a[i], b[i]);
}